package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 关联产品联动表单设置
 *
 * @author JianTao.Xiong
 * @date 2020/3/31
 */
@Getter
@Setter
@ToString
public class ProductDataRelyDTO extends BaseDTO {

    @NotNull(message = "当前表单业务类型不能为空")
    private Integer businessType;

    private String defaultType;

    /**
     * 联动表单业务类型
     */
    @NotNull(message = "联动表单业务类型不能为空")
    private Integer sourceBusinessType;

    /**
     * 联动表单ID
     */
    @NotNull(message = "联动表单ID不能为空")
    private Long sourceFormId;

    @NotNull(message = "联动表单saasMark不能为空")
    private Integer sourceSaasMark;

    @NotNull(message = "联动表单AppId不能为空")
    private Long sourceAppId;

    @NotNull(message = "联动表单menuId不能为空")
    private Long sourceMenuId;

    /**
     * 联动字段attr
     */
    private String attr;
}
